home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
yam_i_dodatki
/
yam-list-1.0.lha
/
forward.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-12-31
|
622b
|
37 lines
/*
** $VER: Forward.rexx 1.0 (12.30.96)
**
** Written by Peter Greci <midgard@nycmetro.com>
**
** It forwards messages from the incoming folder to members of the
** mailing list.
**/
OPTIONS RESULTS
ADDRESS YAM
SetFolder 0
GetFolderInfo MAX; entries = RESULT
ADDRESS REXX
Do Until eof('plist')=1
open('plist','listserv:list','R')
newad=readln('plist')
ADDRESS YAM
DO i=0 TO entries-1
SetMail i
GetMailInfo SUBJECT
sub=RESULT
GetMailInfo FROM
ret=RESULT
mailforward
writemailto newad
writequeue
mailsendall
mailarchive 3
setfolder 3
maildelete
setfolder 0
END
END
EXIT